package com.zeroxml.cms.dao.impl;

import com.wyvoid.core.persistent.hibernate.HibernateDAO;
import com.zeroxml.cms.bo.Tag;
import com.zeroxml.cms.dao.ITagDAO;

import java.util.List;

/**
 * User: cjp
 * Date: 2007-9-22
 * Time: 8:09:55
 */
public class TagDAO extends HibernateDAO<Tag> implements ITagDAO {
    public List<Tag> getHotTags(int count) {
        String hql="from Tag order by articleCount desc";
        return doQueryLimitList(hql,true,count);
    }
}
